package com.power.sifa.std.dao;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Modifying;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.Repository;
import org.springframework.data.repository.query.Param;
import com.power.sifa.std.model.Std_attach;

import javax.transaction.Transactional;
import java.io.Serializable;
import java.util.List;

/**
 * 申请所需材料库 持久层(hibernate)
 */

public interface Std_attachDao extends JpaRepository<Std_attach, Serializable>, JpaSpecificationExecutor<Std_attach>, Repository<Std_attach, Serializable>, Std_attachDaoCustom<Std_attach, Serializable> {

   @Modifying
   @Transactional
   @Query("delete  from Std_attach s where  s.id in (:ids) ")
   void removeByIds(@Param("ids") List<Integer> ids);
}
